package com.yjq.test;

public class Hello {
    private String str;

    public String getStr() {
        return str;
    }

    public void setStr(String str) {
        this.str = str;
    }

    public Hello(){
        System.out.println("Hello的无参构造！");
    }

    public Hello(int a,int b){
        System.out.println("a="+a+";b="+b);
    }

    public Hello(String a){
        System.out.println("a的值："+a );
    }

//    @Override
//    public String toString() {
//        return "Hello{" +
//                "str='" + str + '\'' +
//                '}';
//    }
}
